<div class="modal" ng-controller="KisBpmZDYPropertyPopupCtrl" ng-init="getData()">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true" ng-click="close()">&times;
                </button>
                <h3>附件管理</h3>
            </div>
            <div class="modal-body">
                <!--                <input type="file" name="filename" class="icon-file" value="请选择上传文件" id="uploadFile">-->
                <button type="button" class="btn btn-primary" id="upload" ng-click="upload()">附件上传</button>
                <input name="file" type="file" id="file" onchange="angular.element(this).scope().ajax(this)"
                       ng-model="myValue" style="display: none;">
                <table class="table table-hover" ng-if="count!=0">
                    <tr class="row">
                        <td class="col-ms-1">序号</td>
                        <td class="col-ms-5">文件名</td>
                        <td class="col-ms-3">上传时间</td>
                        <td class="col-ms-3">操作</td>
                    </tr>
                    <tr ng-repeat="(index,data) in aValue" class="row">
                        <td class="col-ms-1">{{index+1}}</td>
                        <td class="col-ms-5">{{data.filename}}</td>
                        <td class="col-ms-3">{{data.createTime}}</td>
                        <td class="col-ms-3"><!-- <a class="btn btn-primary btn-small">下载</a> --><a
                                class="btn btn-primary btn-small" ng-click="delete(data.id)">删除</a></td>
                    </tr>
                </table>
                <p style="display:none;"><textarea auto-focus class="form-control" ng-model="property.value"
                                                   style="width:70%; height:100%; max-width: 100%; max-height: 100%; min-height: 200px;"/>
                </p>
            </div>
            <div class="modal-footer">
                <button ng-click="save()" class="btn btn-primary" translate>ACTION.SAVE</button>
            </div>
        </div>
    </div>
</div>
